import request from '@/config/axios'
import Detail from '@/views/erp/stock/warehouse/components/detail.vue'


export interface MaterialVO {

}


export const warehouseApi = {
  // 仓库新增
  create: async (data: data) => {
    return await request.post({ url: `/erp/warehouse/create`, data })
  },
 // 仓库列表
 pageList: async (params: any) => {
  return await request.get({ url: `/erp/warehouse/page`, params })
},
   // 仓库查所有
 pageLists: async (params: any) => {
  return await request.get({ url: `/erp/warehouse/get?id=1024`, params })
},
   // 仓库删除
   delete: async (data: any) => {
    return await request.delete({ url: `/erp/warehouse/delete?id=`+data })
  },
    // 仓库详情
    details: async (data: any) => {
      return await request.get({ url: `/erp/warehouse/get?id=`+data })
    },
      // 仓库编辑
      update: async (data: any) => {
    return await request.put({ url: `/erp/warehouse/update`,data})
  },
}
